package com.team.recruitment_management_system.controller;

import com.team.recruitment_management_system.pojo.entity.Expect;
import com.team.recruitment_management_system.service.ExpectService;
import com.team.recruitment_management_system.util.result.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * createTime 2024.3.26
 * author xxxty
 */
@RestController
@RequestMapping("/except")
@Tag(name = "求职期望")
public class ExceptController {

    @Autowired
    ExpectService expectService;

    @PostMapping("/add")
    @Operation(summary = "新增求职期望")
    Result add(@RequestBody Expect expect){
        return expectService.add(expect);
    }

    @PutMapping("/update")
    @Operation(summary = "更新求职期望")
    Result update(@RequestBody Expect expect){
        return expectService.update(expect) ;
    }
}
